import request from '@/utils/request'

// 查询模块得分列表
export function listScore(query) {
  return request({
    url: '/module/score/list',
    method: 'get',
    params: query
  })
}

export function findByChartUserId(query) {
  return request({
    url: '/api/evaluation/findByChartUserId',
    method: 'get',
    params: query
  })
}

export function findByChartUser(query) {
  return request({
    url: '/api/evaluation/findByChartUser',
    method: 'get',
    params: query
  })
}


// 查询模块得分详细
export function getScore(id) {
  return request({
    url: '/module/score/' + id,
    method: 'get'
  })
}

// 新增模块得分
export function addScore(data) {
  return request({
    url: '/module/score',
    method: 'post',
    data: data
  })
}

// 修改模块得分
export function updateScore(data) {
  return request({
    url: '/module/score',
    method: 'put',
    data: data
  })
}

// 删除模块得分
export function delScore(id) {
  return request({
    url: '/module/score/' + id,
    method: 'delete'
  })
}
